package com.zhuojy.equity.mall.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhuojy.equity.mall.admin.common.entity.TSeal;
import com.zhuojy.equity.mall.admin.common.pojo.ResultEntity;
import com.zhuojy.equity.mall.admin.dal.mapper.SealMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xrz
 * @version 1.0
 * @description:TODO
 * @date 2024/3/25 20:22
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class SealService extends ServiceImpl<SealMapper, TSeal> {
    public ResultEntity getSeal(TSeal tSeal, Integer pageSize, Integer pageNum) {
        Page<TSeal> page = new Page<>(pageNum, pageSize);
        List<TSeal> seal = this.baseMapper.getSeal(page, tSeal);
        return ResultEntity.OK(seal);
    }
}
